//
//  LoginUtils.h
//  TimeBoat
//
//  Created byyang on 2020/3/6.
//  Copyright © 2020yang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "WXApi.h"
#import "LoginModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface LoginUtils : NSObject<WXApiDelegate>

+(LoginUtils *)shareManager;

@property (nonatomic, copy) void(^callback)(NSDictionary *sender);


/**
*  登录接口
*  @param param 登录参数
*  @param block 登录信息回调
*/
+(void)userLoginWithParam:(NSMutableDictionary *)param block:(void(^)(LoginModel *sender))block failure:(void(^)(NSString *error))failure;


#pragma mark 微信 begin
/**
*  微信登录 登录页或者绑定微信openID调用
*/
+(void)userLoginWithWX:(UIViewController *)vc;

/**
*  微信回调用 AppDelegate onResp调用
*  @param block 回调
*/
+(void)userLoginWXWithResp:(BaseResp *)resp block:(void(^)(NSDictionary *sender))block;
@end

NS_ASSUME_NONNULL_END
